home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
rjs.lha
/
RJS
/
CmdLine
/
src
/
CmdLine.doc
< prev
next >
Wrap
Text File
|
1991-06-14
|
970b
|
74 lines
CmdOpt_param(int n) -- catches n'th `unclaimed word'
CmdOpt_xtra -- catches left overs
CmdOpt_int_list -- catches -list 1,2,3 or -list 1 2 3
CmdOpt_double_list -- catches -list 2,4.5,6 or -list 324 34.56 34.34
CmdOpt_string_list -- catches -list a,b,c or -list a b c
CmdOpt_file_list
CmdOpt_input_file_list
CmdOpt_output_file_list
x CmdOpt_flag
x CmdOpt_boolean
x CmdOpt_double
x CmdOpt_int
x CmdOpt_string
x CmdOpt_int_range
CmdOpt_double_range
CmdOpt_file
CmdOpt_input_file
CmdOpt_output_file
objects -
CmdOpt_boolean
CmdOpt_double
for double (floating numbers)
0
12.3
-12.3
CmdOpt_int
for int (integer numbers)
0
-1
0xff
0666
CmdOpt_string
for String (ascii strings)
hello
this is a string
CmdOpt_int_range
for a range of integers ( to ints seperatered by a : )
0:10 0 to 10
1 1 with no high range
2: 2 with no high range
:40 40 with no low range
CmdOpt_file
CmdOpt_input_file
CmdOpt_output_file
CmdOpt_user